package com.eugene.entity;

import java.io.Serializable;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.eugene.element.FnCalendar;
import com.eugene.element.FnMeasure;
import com.eugene.element.FnProduct;

public class FnPosition implements Serializable{
	
	private final static Logger logger = LoggerFactory.getLogger(FnPosition.class);
	private FnCalendar baseDate;
	private String fnPosId;
	private FnProduct refFnProd;
	private int holdingSize;
	private double bookAmt;
	
	
	private String cntPartyId;
	private String accountNo;

	private String prodType;
	private String coaId;
	private String organId;
	private String dealerId;
	
//	private Map<String, String> userKeys = new LinkedHashMap<String, String>();
	private FnMeasure fnMeasure;

	public FnCalendar getBaseDate() {
		return baseDate;
	}
	public void setBaseDate(FnCalendar baseDate) {
		this.baseDate = baseDate;
	}
	public String getFnPosId() {
		return fnPosId;
	}
	public void setFnPosId(String fnPosId) {
		this.fnPosId = fnPosId;
	}
	public FnProduct getRefFnProd() {
		return refFnProd;
	}
	public void setRefFnProd(FnProduct refFnProd) {
		this.refFnProd = refFnProd;
	}
	public int getHoldingSize() {
		return holdingSize;
	}
	public void setHoldingSize(int holdingSize) {
		this.holdingSize = holdingSize;
	}
	public double getBookAmt() {
		return bookAmt;
	}
	public void setBookAmt(double bookAmt) {
		this.bookAmt = bookAmt;
	}
	public String getProdType() {
		return prodType;
	}
	public void setProdType(String prodType) {
		this.prodType = prodType;
	}
	public String getCntPartyId() {
		return cntPartyId;
	}
	public void setCntPartyId(String cntPartyId) {
		this.cntPartyId = cntPartyId;
	}
	public String getAccountNo() {
		return accountNo;
	}
	public void setAccountNo(String accountNo) {
		this.accountNo = accountNo;
	}
	public String getCoaId() {
		return coaId;
	}
	public void setCoaId(String coaId) {
		this.coaId = coaId;
	}
	public String getOrganId() {
		return organId;
	}
	public void setOrganId(String organId) {
		this.organId = organId;
	}
	public String getDealerId() {
		return dealerId;
	}
	public void setDealerId(String dealerId) {
		this.dealerId = dealerId;
	}
//	public Map<String, String> getUserKeys() {
//		if(!userKeys.containsKey("prodType")){
//			userKeys.put("prodType", prodType);
//		}
//		if(!userKeys.containsKey("organId")){
//			userKeys.put("organId", organId);
//		}
//		if(!userKeys.containsKey("coaId")){
//			userKeys.put("coaId", coaId);
//		}
//		return userKeys;
//	}
//	public void setUserKeys(Map<String, String> userKeys) {
//		this.userKeys = userKeys;
//	}
	public FnMeasure getFnMeasure() {
		return fnMeasure;
	}
	public void setFnMeasure(FnMeasure fnMeasure) {
		this.fnMeasure = fnMeasure;
	}
	
	@Override
	public boolean equals(Object other){
		return super.equals(other); 
	}
	@Override
	public int hashCode(){
		return super.hashCode();
	}
	
//	private List<CommonEntity> uk = new ArrayList<CommonEntity>();
//	public List<CommonEntity> getUk() {
//		return uk;
//	}
//	public void setUk(List<CommonEntity> uk) {
//		this.uk = uk;
//	}
	
	private String userKey1;
	private String userKey2;
	private String userKey3;
	private String userKey4;
	private String userKey5;
	private String userKey6;
	private String userKey7;
	private String userKey8;
	private String userKey9;
	private String userKey10;

	public String getUserKey1() {
		return userKey1;
	}
	public void setUserKey1(String userKey1) {
		this.userKey1 = userKey1;
	}
	public String getUserKey2() {
		return userKey2;
	}
	public void setUserKey2(String userKey2) {
		this.userKey2 = userKey2;
	}
	public String getUserKey3() {
		return userKey3;
	}
	public void setUserKey3(String userKey3) {
		this.userKey3 = userKey3;
	}
	public String getUserKey4() {
		return userKey4;
	}
	public void setUserKey4(String userKey4) {
		this.userKey4 = userKey4;
	}
	public String getUserKey5() {
		return userKey5;
	}
	public void setUserKey5(String userKey5) {
		this.userKey5 = userKey5;
	}
	public String getUserKey6() {
		return userKey6;
	}
	public void setUserKey6(String userKey6) {
		this.userKey6 = userKey6;
	}
	public String getUserKey7() {
		return userKey7;
	}
	public void setUserKey7(String userKey7) {
		this.userKey7 = userKey7;
	}
	public String getUserKey8() {
		return userKey8;
	}
	public void setUserKey8(String userKey8) {
		this.userKey8 = userKey8;
	}
	public String getUserKey9() {
		return userKey9;
	}
	public void setUserKey9(String userKey9) {
		this.userKey9 = userKey9;
	}
	public String getUserKey10() {
		return userKey10;
	}
	public void setUserKey10(String userKey10) {
		this.userKey10 = userKey10;
	}
	
	
}
